package com.fm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Transient;
import java.util.Date;

/**
 * topic日志
 * Created by Administrator on 2018/7/30 0030.
 */
@Entity(name = "ul_topic_log")
@NoArgsConstructor
@AllArgsConstructor
@Data
public class TopicLog extends AbstractMyBatisEntity{
    @Id
    @GeneratedValue
    private Integer id;

    private Integer equipmentId;

    private Integer type;//日志分类1设备行为2上行消息3下行消息

    private Integer productId;

    private Integer status;

    private String content;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm")
    private Date createTime;

    @Transient
    private String equipmentName;
}
